package cn.weakup.thread.question._final;

import java.lang.reflect.Field;

/**
 * @author Dawn
 * @version 1.0.0
 * @desc
 * @date 2022/5/10
 */
public class FinalKeyDemo {
    final int x;

    public FinalKeyDemo() {
        x = 10;
    }

    public static void main(String[] args) throws NoSuchFieldException, IllegalAccessException {
        FinalKeyDemo finalKeyDemo = new FinalKeyDemo();

        System.out.println(finalKeyDemo.x);

        Field x = FinalKeyDemo.class.getDeclaredField("x");


    }
}
